import time
a = [2,3,4,1]
def b(nums,target):
    for i in range(0,len(nums)):
        for x in range(0,len(nums)):
            if nums[i]+nums[x] == target:
                return [i,x]
start = time.time()
time.sleep(2)
print(b(a, 7))
result = time.time() - start - 2
print(result)